﻿@model SiteConfigViewModel
	<div class="layui-row layui-col-space15">
		<div class="layui-col-md12">
			<div class="layui-card">
				<div class="layui-card-header">常规参数设置</div>
				<div class="layui-card-body" pad15>

					<form asp-controller="SiteConfig" asp-action="SiteOption" class="layui-form" wid100 lay-filter="">
						<div class="layui-form-item">
							<label class="layui-form-label">身份票过期时间</label>
							<div class="layui-input-inline" style="width:100px;">
								<input type="text" asp-for="SiteOptionConfigEntity.TicketTime" placeholder="" class="layui-input">
							</div>
							<div class="layui-input-inline layui-input-company">分钟</div>
							<div class="layui-form-mid layui-word-aux">
								<span asp-validation-for="SiteOptionConfigEntity.TicketTime" style="color:red;"></span>
								管理员登录后台后，在不操作的情况下自动保持登录状态的时间设置。如果为0则在当前浏览器保持登录状态。
							</div>
						</div>
						<div class="layui-form-item">
							<label class="layui-form-label">密码哈希值</label>
							<div class="layui-input-inline" style="width:100px;">
								<input type="text" class="layui-input" asp-for="SiteOptionConfigEntity.SiteHashCode">
							</div>
							<div class="layui-form-mid layui-word-aux">
								<span asp-validation-for="SiteOptionConfigEntity.SiteHashCode" style="color:red;"></span>
								用于验证管理员密码数据的有效性，防止被非法方式修改。
							</div>
						</div>
						<div class="layui-form-item">
							<label class="layui-form-label">网站根域名</label>
							<div class="layui-input-inline" style="width:100px;">
								<input type="text" class="layui-input" asp-for="SiteOptionConfigEntity.MainDomain" placeholder="">
							</div>
							<div class="layui-form-mid layui-word-aux">
								<span asp-validation-for="SiteOptionConfigEntity.MainDomain" style="color:red;"></span>
								在启用子域名单点登录的情况下，必须要设置此值。例：baidu.com
							</div>
						</div>
						<div class="layui-form-item layui-form-text">
							<label class="layui-form-label">网站生成目录</label>
							<div class="layui-input-inline" style="width:100px;">
								<input type="text" class="layui-input" asp-for="SiteOptionConfigEntity.CreateHtmlPath" placeholder="">
							</div>
							<div class="layui-form-mid layui-word-aux">
								<span asp-validation-for="SiteOptionConfigEntity.CreateHtmlPath" style="color:red;"></span>
								用于在生成静态页时存放静态页面。如果生成在根目录下，请保留为空！
							</div>
						</div>
						<div class="layui-form-item">
							<div class="layui-input-block">
								<button class="layui-btn" lay-submit lay-filter="set_website">确认保存</button>
								<span style="color:red; font-size:18px;">@Html.ValidationSummary(true)</span>
							</div>
						</div>
					</form>

				</div>
			</div>
		</div>
	</div>
